﻿using System.Linq;
using System.Management.Automation;

using Sitecore.Data.Items;

namespace Cognifide.PowerShell.Shell.Commands.Analytics
{
    [Cmdlet("Get", "AnalyticsVisitor", DefaultParameterSetName = "Name")]
    public class GetAnalyticsVisitorCommand : AnalyticsBaseCommand
    {
        protected override void ProcessRecord()
        {
            var visitors = Context.Visitors;
            PipeQuery(visitors);
        }
    }
}